package cn.wuxing.mediation.system.service.impl;

import java.util.List;
import cn.wuxing.mediation.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.wuxing.mediation.system.mapper.CmProvincialRecordInformationMapper;
import cn.wuxing.mediation.system.domain.CmProvincialRecordInformation;
import cn.wuxing.mediation.system.service.ICmProvincialRecordInformationService;

/**
 * 省市回流_信访件_信访事项办理记录信息Service业务层处理
 *
 * @author mediation
 * @date 2024-09-28
 */
@Service
public class CmProvincialRecordInformationServiceImpl implements ICmProvincialRecordInformationService
{
    @Autowired
    private CmProvincialRecordInformationMapper cmProvincialRecordInformationMapper;

    /**
     * 查询省市回流_信访件_信访事项办理记录信息
     *
     * @param xfjbh 省市回流_信访件_信访事项办理记录信息主键
     * @return 省市回流_信访件_信访事项办理记录信息
     */
    @Override
    public CmProvincialRecordInformation selectCmProvincialRecordInformationByXfjbh(String xfjbh)
    {
        return cmProvincialRecordInformationMapper.selectCmProvincialRecordInformationByXfjbh(xfjbh);
    }

    /**
     * 查询省市回流_信访件_信访事项办理记录信息列表
     *
     * @param cmProvincialRecordInformation 省市回流_信访件_信访事项办理记录信息
     * @return 省市回流_信访件_信访事项办理记录信息
     */
    @Override
    public List<CmProvincialRecordInformation> selectCmProvincialRecordInformationList(CmProvincialRecordInformation cmProvincialRecordInformation)
    {
        return cmProvincialRecordInformationMapper.selectCmProvincialRecordInformationList(cmProvincialRecordInformation);
    }

    /**
     * 新增省市回流_信访件_信访事项办理记录信息
     *
     * @param cmProvincialRecordInformation 省市回流_信访件_信访事项办理记录信息
     * @return 结果
     */
    @Override
    public int insertCmProvincialRecordInformation(CmProvincialRecordInformation cmProvincialRecordInformation)
    {
        cmProvincialRecordInformation.setCreateTime(DateUtils.getNowDate());
        return cmProvincialRecordInformationMapper.insertCmProvincialRecordInformation(cmProvincialRecordInformation);
    }

    /**
     * 修改省市回流_信访件_信访事项办理记录信息
     *
     * @param cmProvincialRecordInformation 省市回流_信访件_信访事项办理记录信息
     * @return 结果
     */
    @Override
    public int updateCmProvincialRecordInformation(CmProvincialRecordInformation cmProvincialRecordInformation)
    {
        cmProvincialRecordInformation.setUpdateTime(DateUtils.getNowDate());
        return cmProvincialRecordInformationMapper.updateCmProvincialRecordInformation(cmProvincialRecordInformation);
    }

    /**
     * 批量删除省市回流_信访件_信访事项办理记录信息
     *
     * @param xfjbhs 需要删除的省市回流_信访件_信访事项办理记录信息主键
     * @return 结果
     */
    @Override
    public int deleteCmProvincialRecordInformationByXfjbhs(String[] xfjbhs)
    {
        return cmProvincialRecordInformationMapper.deleteCmProvincialRecordInformationByXfjbhs(xfjbhs);
    }

    /**
     * 删除省市回流_信访件_信访事项办理记录信息信息
     *
     * @param xfjbh 省市回流_信访件_信访事项办理记录信息主键
     * @return 结果
     */
    @Override
    public int deleteCmProvincialRecordInformationByXfjbh(String xfjbh)
    {
        return cmProvincialRecordInformationMapper.deleteCmProvincialRecordInformationByXfjbh(xfjbh);
    }
}
